package wxdb.parse.absyn;
import java.util.*;

import wxdb.symbol.Symbol;
public class FromLst extends Absyn{
	public Symbol tableName;
	public FromLst table;
	
	private ArrayList<String> tables = new ArrayList<String>();
	
	public FromLst(int p, Symbol tn, FromLst t){
		pos = p;
		tableName = tn;
		table = t;
		
		tables.add(tableName.toString());
		if(t!=null){
			tables.addAll(t.tables());
		}
	}
	
	public ArrayList<String> tables(){
		return tables;
	}
}
